FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9

WORKDIR /app

COPY ./requirements.txt /app/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple pillow

#COPY ./sql_app /sql_app/

ADD ./* /app/
ADD ./sql_app /app/
ADD ./sql_app/* /app/sql_app/
ADD ./sql_app/models /app/sql_app/models
ADD ./sql_app/router /app/sql_app/router
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]